package br.ufpe.cin.dsoa.qos.monitoring.service.events;

public class QoSAttribute {
	
	protected String consumerId;
	protected String serviceId;
	protected String operationName;
	protected double value;
	
	public QoSAttribute(String serviceId, String operationName,
			String consumerId, double value) {
		this(serviceId, consumerId, value);
		this.operationName = operationName;
	}
	
	public QoSAttribute(String serviceId, String consumerId, double value) {
		this.serviceId = serviceId;
		this.consumerId = consumerId;
		this.value = value;
	}

	public String getConsumerId() {
		return consumerId;
	}
	public void setConsumerId(String consumerId) {
		this.consumerId = consumerId;
	}
	public String getServiceId() {
		return serviceId;
	}
	public void setServiceId(String serviceId) {
		this.serviceId = serviceId;
	}
	public String getOperationName() {
		return operationName;
	}
	public void setOperationName(String operationName) {
		this.operationName = operationName;
	}
	public double getValue() {
		return value;
	}
	public void setValue(double value) {
		this.value = value;
	}

	@Override
	public String toString() {
		return "QoSAttribute [consumerId=" + consumerId + ", serviceId="
				+ serviceId + ", operationName=" + operationName + ", value="
				+ value + "]";
	}
	
}
